<?php 
session_start();
?>
<!-- File Upload Files -->
<link href="css/fileuploader.css" rel="stylesheet" type="text/css">
<script src="js/fileuploader.js" type="text/javascript"></script>

<!-- Script Mapping Form -->
<script src="http://maps.google.com/maps/api/js?sensor=false&libraries=drawing,geometry&dummy=.js" type="text/javascript"></script>
<script src="js/jquery/jquery.gomap-1.3.2.js" type="text/javascript"></script>

<script src="js/mapping.js?<?=time();?>" type="text/javascript"></script>
<script src="js/autoFiltroMapping.js" type="text/javascript"></script>
<script src="js/autoFiltroEVPsMapping.js" type="text/javascript"></script>
<script src="js/autoFiltroPOIs.js" type="text/javascript"></script>

<div id="modIzqMapping">
	<div id="botonesAcciones">
		<div id="btnCargarFiltro"></div>
		<div id="btnGrabarFiltro" class="btnAccFilter btnAccB">Grabar Filtro</div>
		<div id="btnCampanna" class="btnAccFilter btnAccB">Campa&ntilde;as</div>
		<div id="btnUploadExcel" class="btnAccFilter btnAccB" style="margin-top: 10px;">Upload Excel</div>
	</div>
	<?php if($_SESSION["userType"] != $idTypeConsult) { ?>
		<div id="botonesMapping">		
			<table id="tableOver">
				<tr>
					<td>Elemento</td>
					<td><a id="btnElemento" class="btnAccFilter btnAccB">Filtro</a></td>
				</tr>
				<tr>
					<td>EVP</td>
					<td><a id="btnEVP" class="btnAccFilter btnAccB">Filtro</a></td>
				</tr>
				<tr>
					<td>Provincia</td>
					<td><a id="btnProvincia" class="btnAccFilter btnAccB">Filtro</a></td>
				</tr>
				<tr>
					<td>Localidad</td>
					<td><a id="btnLocalidad" class="btnAccFilter btnAccB">Filtro</a></td>
				</tr>
				<tr>
					<td>POIs</td>
					<td><a id="btnPOIs" class="btnAccFilter btnAccB">Filtro</a></td>
				</tr>
				<tr><td>&nbsp;</td></tr>
				<tr>
					<td>Icon Reference</td>
					<td>
						<select name="tipoFiltro" id="tipoFiltro">
							<option value="1">EVP/Elemento</option>
							<option value="2">EVP</option>
							<option value="3">Elemento</option>
						</select>
					</td>
				</tr>
				<tr>
					<td colspan="2"><a id="btnActulizarMapa" class="btnAccFilter btnAccB">Actualizar Mapa</a></td>
				</tr>
				<tr>
					<td colspan="2"><a id="btnMostrarFiltros" class="btnAccFilter btnAccB">Mostrar Filtros</a></td>
				</tr>
				<tr>
					<td colspan="2"><div id="btnGrabarMapa" class="btnAccFilter btnAccB">Grabar Mapa</div></td>
				</tr>
			</table>
		</div>
	<?php } else {?>
		<div id="botonesMapping">		
			<table id="tableOver">
				<tr>
					<td>Elemento</td>
					<td><a href="javascript:;" class="btnAccFilter btnAccB">Filtro</a></td>
				</tr>
				<tr>
					<td>EVP</td>
					<td><a href="javascript:;" class="btnAccFilter btnAccB">Filtro</a></td>
				</tr>
				<tr>
					<td>Provincia</td>
					<td><a href="javascript:;" class="btnAccFilter btnAccB">Filtro</a></td>
				</tr>
				<tr>
					<td>Localidad</td>
					<td><a href="javascript:;" class="btnAccFilter btnAccB">Filtro</a></td>
				</tr>
				<tr>
					<td>POIs</td>
					<td><a href="javascript:;" class="btnAccFilter btnAccB">Filtro</a></td>
				</tr>
				
				<tr>
					<td colspan="2"><a href="javascript:;" class="btnAccFilter btnAccB">Actualizar Mapa</a></td>
				</tr>
				<tr>
					<td colspan="2"><a href="javascript:;" class="btnAccFilter btnAccB">Mostrar Filtros</a></td>
				</tr>
				<tr>
					<td colspan="2"><a href="javascript:;" class="btnAccFilter btnAccB">Grabar Mapa</a></td>
				</tr>
			</table>
		</div>
	<?} ?>
	<div id="referenceTable" class="showTable">
		<div id="btnVerGrilla" class="btnAccFilter btnAccB">Ver Grilla</div>
		<div id="btnGlosario" class="btnAccFilter btnAccB">Glosario</div>
	</div>
	
	<div id="mappingFotosDialog"></div>
	
</div>
<img class="loader" src="images/ajax-loader-7.gif">
<div id="modDerMapping">
	<span id="titleCampanna" style="display: none;">Campa&ntilde;a: </span>
	<div id="mapping"></div>
	<div id="tablaReferencias" style="display: none;">
		<a id="btnMaxMin" class="btnMaximizarGrid" style="margin: 5px;"></a>
		<a id="btnExportExcel" class="btnExcelGrid" style="margin: 5px;"></a>
		<?php if($_SESSION["userType"] != $idTypeConsult) { ?>
			<a id="btnRefreshGrid" class="btnRefreshGrid" style="margin: 5px;"></a>
			<a id="btnFavoritosGrid" class="desactivado" style="margin: 5px;"></a>
		<?php }?>
		<table id="dt_referencias" class="display">
			<thead>
				<tr>
					<th>&nbsp;</th>
					<th>EVP</th>
					<th>Direcci&oacute;n</th>
					<th>Provincia</th>
					<th>Localidad</th>
					<th>Elemento</th>
					<th>Transito</th>
					<th>Visibilidad</th>
					<th>Medidas</th>
					<th>ID Referencia</th>
					<th>AGIP</th>
					<th>Cantidad</th>
					<th>Favorito</th>
				</tr>
		    </thead>
		    <tbody>
		    	<tr>
		    		<td colspan="13" class="dataTables_empty">Cargando Datos...</td>
		    	</tr>
			</tbody>
		</table>
	</div>
</div>

<!-- PopUp Autofilter Dialog -->
<div id="autoFilterDialog"></div>
<div id="glosarioDialog"></div>

<!-- PopUp Mapping Dialog -->
<div id="mappingExcelDialog"></div>
<div id="mappingCampannaDialog"></div>
<div id="mappingVerFiltros"></div>

<script>
	var libPoly = '<?php echo $_SESSION["userType"] != $idTypeConsult ? 'drawing_lib' : '';?>';
	$_init();
</script>